package com.ziq.zcamp.bean.activities

import com.ziq.zcamp.bean.product.RefundRule
import com.ziq.zcamp.proguard.ProguardKeep
import java.io.Serializable

class ActMerchantOrderDetail : ProguardKeep, Serializable {
    var activity_id :Long? = null
    var comment :String? = null//备注
    var date_time :String? = null//出行日期
    var money :Long? = null//订单实付金额,单位：分
    var name :String? = null//联系方式-姓名
    var orderid :String? = null
    var phone :String? = null//联系方式-手机号码
    var status_details : StatusDetails? = null
    var ticket_detail : TicketDetailInfo? = null
    var ticket_id :String? = null //活动票种id
    var ticket_num :Int? = null //购买数量
    var ticket_amount :Int? = null //活动票总价
    var uid :Int? = null

    var id_card_number :String? = null //身份证号，空表示无


    class StatusDetails : ProguardKeep, Serializable {
        var status :Int? = null//订单状态：订单状态：0待支付,1待接单,2待核销，3已完成，4已取消（用户未支付）,5已退款
        var cancel_order_time :Long? = null// 取消订单时间戳
        var cancel_type :Int? = null//取消类型：1用户主动取消订单，2用户超时未支付
        var create_order_time :Long? = null //下单时间戳
        var finish_order_time :Long? = null// 完成时间戳
        var finish_refund_time :Long? = null//退款成功/退款失败时间
        var is_consume :Int? = null//核销状态,0未核销,1已核销,2已过期
        var is_night_order : Boolean? = null //是否为夜间订单
        var is_refund :Int? = null//退款状态,0未退款,1已退款成功，2退款失败
        var pay_order_time :Long? = null// 付款时间戳
        var rcv_order_time :Long? = null// 接单时间戳
        var remain_time :Long? = null//待支付或者待接单倒计时，结束时间戳
        var refund_money : Int? = null //退款金额
        var refund_rule : List<RefundRule>? = null //退款规则
        var refund_type : Int? = null //退款类型，
        //退款类型，1用户申请退款，2商家退款

        // 1用户主动取消订单，
        // 2用户超时未支付，订单自动取消，
        // 3商家已接单，用户申请退款，
        // 4商家已接单，主动发起退款，
        // 5商家拒绝接单，自动发起退款，
        // 6商家超时未接单，自动发起退款，
        // 7商家未接单，用户取消订单，系统发起退款
    }
}